<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>核销</title>
    <link rel="stylesheet" href="{$_W['siteroot']}../addons/{MOD_ADD}/static/mobile/css/common.css">
    <link rel="stylesheet" href="{$_W['siteroot']}../addons/{MOD_ADD}/static/mobile/css/index.css">
    <script src="{$_W['siteroot']}../addons/{MOD_ADD}/static/admin/H/js/jquery-2.1.1.js"></script>
    <script src="{$_W['siteroot']}../addons/{MOD_ADD}/static/admin/H/js/plugins/layer/layer.min.js"></script>
    <script src="{$_W['siteroot']}../addons/{MOD_ADD}/static/admin/script/for_ajax.js?v={php echo time()}"></script>
</head>

<body>
    <div class="header">核销</div>
    <div class="container"></div>
    <div class="top">
        <div class="img">
            <img src="{php echo $user['avatar']}" alt="">
        </div>
        <div class="r">
            <div class="name">用户昵称：{$user['nickname']}</div>
            <div class="totpri">
                <span>金额：</span>
                <span>{$user['money']}</span>
            </div>
        </div>

    </div>
    <form  id="form_name" name="form_name">
        <div class="hexiao">
            <input type="number" name="price" max="{$user['money']}" min="1" placeholder="请输入核销金额"/>
            <input type="hidden" name="TokenCode" value="{$token}"/>
            <input type="hidden" value="{php echo gMobileUrl('index/moneyAdd')}" id="url_class" name="url_class">
            <div class="btn" id="form_submit">核销</div>
        </div>
    </form>
    </div>
</body>
</html>
<script>
    $("#form_submit").click(function(){
        if(!$(this).hasClass('disabled')){
            $(this).addClass('disabled');
            //验证
            postFormData('form_name');
            setTimeout("$('#form_submit').removeClass('disabled')", 2000);
            return false;
        }
    });

</script>